package com.csii.core.system.base.service.impl;

import com.csii.core.constant.CacheConstant;
import com.csii.galaxy.studio.service.GalaxyStudioBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @Description TODO
 * @Date 2021/1/9 10:05
 * @Created by Ian
 * @Contact: 19107614@qq.com
 */
@Service
public class DictCacheServiceImpl {
    @Autowired
    GalaxyStudioBaseService galaxyStudioBaseService;
    @Cacheable(value = CacheConstant.SYS_DICT_CACHE)
    public String queryTableDictTextByKey( String table,  String text,  String code,  String key){
        return galaxyStudioBaseService.queryTableDictTextByKey(table, text, code, key);
    }
    @Cacheable(value = CacheConstant.SYS_DICT_CACHE)
    public String queryDictTextByKey( String code,  String key){
        return galaxyStudioBaseService.queryDictTextByKey(code, key);
    }
}
